<script type="text/javascript">
	$(document).ready(function() {
		$("#achievements").tablesorter({
			widthFixed: true,
			widgets: ['zebra']
		}).tablesorterPager({
			container: $(".pager")
		});
	});
</script>
<div id="main-content" class="prepend-1 span-19 last">
	<h3>Daftar Prestasi - <?php echo $student->name; ?></h3>
	<table id="achievements">
	<thead>
		<tr>
			<th width="350">Nama Prestasi</th>
			<th width="100">Tahun</th>
			<th width="400">Keterangan Hasil dan Deskripsi Singkat</th>
		</tr>
	</thead>
	<tfoot>
		<?php echo $pager; ?>
	</tfoot>
	<tbody>
<?php 
	if ($achievements == NULL) :
?>
		<tr>
			<td colspan="4" align="center">
				<span class="info">Belum ada prestasi ditambahkan.</span>
			</td>
		</tr>
<?php 
	else :
		foreach ($achievements as $achievement) :
?>
		<tr>
			<td><?php echo $achievement->name; ?></td>
			<td align="center"><?php echo $achievement->year; ?></td>
			<td><?php echo $achievement->result; ?></td>
		</tr>
<?php 
		endforeach;
	endif;
?>
	</tbody>
	</table>
	<div class="clear"><?php echo nbs(); ?></div>
</div>
